	<div class="fields">
		{foreach from=$fields item=blocks key=field}
			<div class="field" rel="{$field}">
				<div class="hendler">
					<strong>{$field}</strong>{if $field == 0} - Поле главного модуля{else} - Поле{/if}
				</div>

				{foreach from=$blocks item=block}
					<div class="block" rel="{$block->id}">
						<img src="/tpl/admin/images/trash.png" class="button delete"/>
						<img src="/tpl/admin/images/down.png" class="button down"/>
						<img src="/tpl/admin/images/up.png" class="button up"/>
						<img src="/tpl/admin/images/pencil.png" class="button edit"/>
						{$block->Module->title}
					</div>
				{/foreach}
			</div>
		{/foreach}
	</div>
	<div class="button">
		<input class="addModule" type="button" value="Добавить модуль">
		<input class="addField" type="button" value="Добавить поле">
		<input class="copyBlocks" type="button" value="Вставить блоки">
	</div>
	<div class="modules">
		{foreach from=$modules_list item=module}
			<div class="module" rel="{$module->id}">
				{$module->title}
			</div>
		{/foreach}
	</div>